package com.designpatterns.decorator;

import com.designpatterns.decorator.equip.ShoeEquip;
import com.designpatterns.decorator.gem.BlueGemDecotator;

public class test {
    public static void main(String[] args) {
        //一颗蓝宝石的靴子
        BlueGemDecotator blueGemDecotator = new BlueGemDecotator(new ShoeEquip());
        System.out.println("攻击力："+blueGemDecotator.caculateAttack());
        System.out.println("描述："+blueGemDecotator.description());
    }
}
